package model

type Details struct {
	CigarCode string `json:"cigar_code"`
	Group     string `json:"group"`
	D00       int64  `json:"d00"`
	D01       int64  `json:"d01"`
	D02       int64  `json:"d02"`
	D03       int64  `json:"d03"`
	D04       int64  `json:"d04"`
	D05       int64  `json:"d05"`
	D06       int64  `json:"d06"`
	D07       int64  `json:"d07"`

	D1       int64  `json:"d1" `
	D2       int64  `json:"d2"`
	D3_4     int64  `json:"d3_4"`
	D5       int64  `json:"d5"`
	D6_7     int64  `json:"d6_7" `
	D8       int64  `json:"d8"`
	D9       int64  `json:"d9"`
	TimeData string `json:"time_data"`
	MmTime   string `json:"mm_time"`
	FragMent string   `json:"frag_ment"`
}

type FragMent struct{
	CigarCode        string   `json:"cigar_code"`
	StartTime         string   `json:"start_time"`
	EndTime          string   `json:"end_time"`
	StartTimeDrawing  string   `json:"start_time_drawing"`
	EndTimeDrawing   string   `json:"end_time_drawing"`
	Max              string   `json:"Max"`
}


type FragmentDrawing struct{
	CigarCode string   `json:"cigar_code"`
	StarTime  string   `json:"star_time"`
	EndTime   string   `json:"end_time"`
	Max       string   `json:"max"`
}

type BasicInfosTwo struct {
	CigarCode string `json:"cigar_code"`
	CigType   string `json:"cig_type" `
	SetPower  string `json:"set_power"`
	Basicr    string `json:"basicr"`
	BatVol    string `json:"bat_vol" `
	NetTime   string `json:"net_time" `
}
type CurrentStatusTwo struct {
	CigarCode      string `json:"cigar_code"`
	ErrCode        string `json:"err_code"`
	Flavor         string `json:"flavor"`
	Color          string `json:"color"`
	RemainCapacity string `json:"remain_capacity"`
}

type SmokingInfosTwo struct {
	CigarCode      string `json:"cigar_code"`
	SmokeTime      string `json:"smoke_time" `
	LastTime       string `json:"last_time"`
	EndState       string `json:"end_state"`
	HeatPower      string `json:"heat_power"`
	SmokeForce     string `json:"smoke_force" `
	RemainCapacity string `json:"remain_capacity"`
	HandleFlag     bool `json:"handle_flag"`
}

func (SmokingInfosTwo) TableName() string {
	return "smoking_infos_two"
}

type Summarys struct {
	CigarCode      string `json:"cigar_code"`
	IpAddress      string `json:"ip_address"`
	District       string `json:"district" `
	Phone          string `json:"phone"`
	WechatNumber   string `json:"wechat_number"`
	Gender         string `json:"gender"`
	SmokeCount     string `json:"smoke_count" `
	SmokeTotalTime string `json:"smoke_total_time"`

	NewTimeData       string `json:"new_time_data"`
	NewTimeOnline     string `json:"new_time_online" `
	NewLastTime       string `json:"new_last_time"`
	NewErrCode        string `json:"new_err_code"`
	NewFlavor         string `json:"new_flavor"`
	NewColor          string `json:"new_color" `
	NewRemainCapacity string `json:"new_remain_capacity"`
	NewEndState       string `json:"new_end_state"`
}

type SmookeDrawings struct {
	CigarCode           string `json:"cigar_code" gorm:"type:varchar(255);not null"`
	TimeData            string `json:"time_data" gorm:"type:varchar(255);not null"`
	Siganl0             string `json:"siganl0" gorm:"type:varchar(255);not null"`
	Siganl1             string `json:"siganl1" gorm:"type:varchar(255);not null"`
	Siganl2             string `json:"siganl2" gorm:"type:varchar(255);not null"`
	Siganl3             string `json:"siganl3" gorm:"type:varchar(255);not null"`
	Siganl4             string `json:"siganl4" gorm:"type:varchar(255);not null"`
	Siganl5             string `json:"siganl5" gorm:"type:varchar(255);not null"`
	Siganl6             string `json:"siganl6" gorm:"type:varchar(50);not null"`
	Siganl7             string `json:"siganl7" gorm:"type:varchar(50);not null"`
	Counts              string `json:"counts" gorm:"type:varchar(50);not null"`
	ValueR              string `json:"value_r" gorm:"type:varchar(50);not null"`
	StableValuer        string `json:"stable_valuer" gorm:"type:varchar(50);not null"`
	StarValuer          string `json:"star_valuer" gorm:"type:varchar(50);not null"`
	EndValuer           string `json:"end_valuer" gorm:"type:varchar(50);not null"`
	ThresholdValueCount string `json:"threshold_value_count" gorm:"type:varchar(50);not null"`
	Group               string `json:"group" gorm:"type:varchar(50);not null"`
	MmTime               string `json:"mm_time"`
	FragMent             string  `json:"frag_ment" gorm:"not null"`
}  

type CigaretteInformationSummarys struct {
	TimeDay         string `json:"time_day" gorm:"type:varchar(255);not null"`
	NewPeople       int64  `json:"new_people" gorm:"type:varchar(255);not null"`
	OldPeople       int64  `json:"old_people" gorm:"type:varchar(255);not null"`
	NetworkMansum   int64  `json:"network_mansum" gorm:"type:varchar(255);not null"`
	NetworkWomansum int64  `json:"network_womansum" gorm:"type:varchar(255);not null"`
	Networkings     int64  `json:"networkings" gorm:"type:varchar(255);not null"`
	Juvenile        int64  `json:"juvenile" gorm:"type:varchar(255);not null"`
	Youth           int64  `json:"youth" gorm:"type:varchar(255);not null"`
	MiddleAge       int64  `json:"middle_age" gorm:"type:varchar(50);not null"`
	Agedness        int64  `json:"agedness" gorm:"type:varchar(50);not null"`
	SmokePop        int64  `json:"smoke_pop" gorm:"type:varchar(50);not null"`
	SmokeDuration   float64  `json:"smoke_duration" gorm:"type:varchar(50);not null"`
	BindNumber      int64  `json:"bind_number" gorm:"type:varchar(50);not null"`
	NoBindNumber    int64  `json:"no_bind_number" gorm:"type:varchar(50);not null"`
}
 ///////////////////net_drawing数据表结构体////////////////////
 type NetDrawing struct {
	DateTime     string `json:"date_time" gorm:"type:varchar(255);not null"`
	NetWorking   int `json:"net_working" gorm:"not null"`
	MarginValue  int `json:"margin_value" gorm:"not null"`
}
func (NetDrawing) TableName() string {
	return "net_drawings"
}
type SmokingPowers struct{
	TimeHours     string `json:"time_hours" gorm:"type:varchar(255);not null"`
	NewSmokingPower   float64 `json:"new_smoking_power" gorm:"type:varchar(255);not null"`
}
